package com.jiyinit.web.core.run.dao;

import com.jiyinit.core.framework.dao.mybatis.base.MybatisDaoContext;
import com.jiyinit.web.core.run.entity.TabRunCountEntity;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;

/**
 * Created by Jiyinuser071 on 2018/12/12.
 */

@Repository("run.tabRunCountTotalDao")
public class TabRunCountTotalDao {
    private String SQLID = "run.tabRunCountTotalDao.";

    @Autowired
    @Qualifier("core.MybatisDaoContext")
    private MybatisDaoContext mybatisDaoContext;

    /**
     * 添加
     * @param entity
     * @return
     */
    public int add(TabRunCountEntity entity){
        return mybatisDaoContext.save(SQLID+"insert",entity);
    }
}
